package model 
{
	import flash.events.Event;
	import flash.events.EventDispatcher;
	/**
	 * ...
	 * @author bimkute
	 */
	public class MyData extends EventDispatcher
	{
		private static var instance:MyData;
		public var myName:String = "";
		private var _myMoney:int = 0;
		
		//các mảng chứa thông số kết quả của dialing 1,2,3 
		public var arrResultDialing1:Array = [8,6,7];
		public var arrResultDialing2:Array = [3,4,5];
		public var arrResultDialing3:Array = [6, 7];
		
		public var _arrBetting:Array = [];
		public var _countRequest:int = 0;

		public var _getDataMatchComplete:Boolean = false;
		public var canStartGame:Boolean = true;
		
		public var page:int;
		public function MyData() 
		{
			
		}
		
		public static function getInstance():MyData 
		{
			if (!instance) 
			{
				instance = new MyData();
			}
			return instance;
		}
		
		public function get myMoney():int 
		{
			return _myMoney;
		}
		
		public function set myMoney(value:int):void 
		{
			_myMoney = value;
			dispatchEvent(new Event("changeMoney"));
		}
	}

}